<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<base href="<%=basePath%>">


<html>
<head>

    <title>库房分配</title>
    <style type="text/css">
        td {
            font-size: 14px;
            text-align: center;
        }

        input {
            text-align: center;
        }

        table {
            text-align: center;
        }

        #sousuo1 {
            background-image: img / search-icon . png;
            position: relative;
            top: -18px;
            left: -15px
        }

        #xinxi {
            display: none;
            background-color: powderblue;
            position: absolute;
            left: 700PX;
            top: 180px;
        }

    </style>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
    <link type="text/css" rel="stylesheet" href="css/index.css"/>
    <script src="js/jquery.min.js"></script>
    <!-- 动态菜单JS -->
    <script type="text/javascript" src="js/menu.js"></script>
</head>

<body>

<div class="container">
    <div class="cont-top">
        <div class="companyname">ERP管理系统</div>
        <div class="cont-top-middle">
            <ul>
                <li style="margin-left: 300px"><h1 STYLE="font-size: 40px;margin-left: 430px; margin-top: 10px ">第&nbsp;五&nbsp;人&nbsp;民&nbsp;医&nbsp;院</h1>
                </li>

            </ul>
        </div>
        <div class="cont-top-rg">
            <ul class="advanced-menu">
                <li>
                    <div class="top-search">
                        <div class="t-s-l">
                            <span class="left-line"></span> <input type="text" value="搜库存"
                                                                   class="search-type" disabled> <span
                                class="triangle-bottom"></span>
                        </div>
                        <div class="t-s-l">


                            <form action="BuyServlet?act=sousuo" method="post">
                                <input type="text" placeholder="请输入商品编码或名称" name="sou"
                                       class="search-dt"> <span class="right-line"></span>
                                <span class="right-line"> <input
                                        type="submit" value="搜索" id="sousuo1"/></span>
                            </form>


                        </div>
                    </div>
                </li>
                <li class="default" style="position: relative;"><span
                        class="user"><img src="img/user.png"></span> <a
                        class="special" onclick="denglu()">${user.userName} <i><img
                        src="img/xl.png"></i></a>
                    <div class="drop-down-wrap"
                         style="width: 180px; left: 15px; display: none;">
                        <div class="drop-down">
                            <span class="triangle-border"></span> <span class="triangle-bg"></span>
                            <ul class="del-ul">
                                <li><a href="#" class="hot">首耀照明</a></li>
                                <li><a href="#">小丫头</a></li>
                                <li><a href="#">操作日志</a></li>
                            </ul>
                        </div>
                    </div>
                </li>
            </ul>
            <ul class="advanced-menu">
                <li id="p" style="display: none;"></li>
                <li><a href="#"><img src="img/top-icon2.png"></a></li>
                <li><a href="#"><img src="img/top-icon3.png"></a></li>
                <li><a href="#"><img src="img/top-icon4.png"></a></li>
                <li><a href="#"><img src="img/top-icon5.png"></a></li>
            </ul>
        </div>
    </div>
    <div class="left-menu" style="height:949px;">
        <div class="menu-list">
            <ul>
                <%--                menuNameOne menuPathList--%>
                <c:forEach var="menuNameOne" items="${menuNameOne}">
                    <li class="menu-list-01">

                        <p class="fumenu">${menuNameOne.menuNameOne}</p>
                        <img class="xiala" src="img/xiala.png"/>

                        <div class="list-p">
                            <c:forEach var="menuPathList" items="${menuPathList}">
                                <c:if test="${menuNameOne.menuNameOne==menuPathList.menuNameOne}">

                                    <a href="${menuPathList.menu.menuPath}" id="href">
                                        <p class="zcd" id="zcd5">${menuPathList.menu.menuNametwo}</p>
                                    </a>
                                </c:if>
                            </c:forEach>
                        </div>
                    </li>
                </c:forEach>
            </ul>


        </div>
    </div>
    <div id="pin">
        <div class="right-menu">
            <hr style="border:  1px solid #0FB9EF">
            <div class="main-hd">

                <div class="l-tab-content" style="background: #fff; ">
                    <div class="tab-content-item">
                        <div class="home">
                            <!--库房分配   开始-->
                            <div class="kufang-box" style="height: 120px;margin-top: -10px;">
                                <div class="kufang" style="height: 80px;margin-left: -400px;margin-top: 5px">

                                    <div>
                                        <div class="kf-fl">
                                            <ul>
                                                <li STYLE="font-size: 15px;margin-left: 800px;margin-top: -12px; ">
                                                    一维码:<SPAN></SPAN></li>

                                            </ul>

                                        </div>
                                        <div class="kf-fl">
                                            <ul>
                                                <li STYLE="font-size: 15px;margin-left: 210px;margin-top: -12px; ">
                                                    日期:<SPAN id="time"></SPAN></li>

                                            </ul>

                                        </div>
                                    </div>
                                </div>

                                <div class="kf-tab"
                                     style="margin-left: 370px;width: 700px;margin-top: -50px;height: 730PX">


                                    <div class="kfbody" tabindex="0" STYLE="height: 700PX">
                                        <table border="0" cellpadding="0" cellspacing="1"
                                               class="fkbody-rows" style="width: 100%;">
                                            <tbody>


                                            </tr>
                                            </tbody>

                                            <tbody ID="ll">

                                            <c:set var="a" value="1"></c:set>

                                            <c:forEach var="p" items="${listone}">

                                                    <form action="sheet/printSummary?summaryid=${ExaminationprojectList.get(0).medicalSheetId}"
                                                          id="printo"
                                                          method="post">

                                                        <tr class="fkbody-s" _rowindex="0">

                                                            <td class="bodyrow-list" _columnindex="0" style="width: 25%">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">
                                                                    姓名

                                                                </div>

                                                            </td>

                                                            <td class="bodyrow-list" _columnindex="1" style="width: 25%">
                                                                <div class="bodytxt" id="ming${a}"
                                                                     style="overflow: hidden; text-align: center;">${p.sheetName}</div>
                                                            </td>

                                                            <td class="bodyrow-list" _columnindex="2">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">性别
                                                                </div>
                                                            </td>


                                                            <td class="bodyrow-list" _columnindex="4" style="width: 25%">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">${p.sheetSex}</div>
                                                            </td>


                                                        </tr>

                                                        <tr class="fkbody-s" _rowindex="0">
                                                            <td class="bodyrow-list" _columnindex="2" style="width: 25%">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;height: 30px">
                                                                    科室
                                                                </div>
                                                            </td>


                                                            <td class="bodyrow-list" _columnindex="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">${p.sheetDepartment}</div>
                                                            </td>
                                                            <td class="bodyrow-list" _columnindex="2" style="width: 25%">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">接收情况
                                                                </div>
                                                            </td>


                                                            <td class="bodyrow-list" _columnindex="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;" id="qingk">
                                                                        ${p.sheetReceive} </div>
                                                            </td>


                                                        </tr>

                                                        <tr class="fkbody-s" _rowindex="0">
                                                            <td class="bodyrow-list" _columnindex="4" colspan="2">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center; height: 30px">
                                                                    检查项目
                                                                </div>
                                                            </td>
                                                            <td class="bodyrow-list" _columnindex="4" colspan="2">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;height: 30px">
                                                                        ${p.sheetProject}</div>
                                                            </td>
                                                        </tr>




                                                        <tr class="fkbody-s" _rowindex="0">
                                                            <td class="bodyrow-list" _columnindex="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">
                                                                    细项名称
                                                                </div>
                                                            </td>

                                                            <td class="bodyrow-list" _columnindex="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">
                                                                    结果
                                                                </div>
                                                            </td>
                                                            <td class="bodyrow-list" _columnindex="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">
                                                                    单位
                                                                </div>
                                                            </td>
                                                            <td class="bodyrow-list" _columnindex="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">
                                                                    参考值
                                                                </div>
                                                            </td>

                                                        </tr>


                                                        <c:forEach var="examinationproject" items="${examinationproject}">

                                                                <tr class="fkbody-s" _rowindex="0">
                                                                    <td class="bodyrow-list" _columnindex="4">
                                                                        <div class="bodytxt"
                                                                             style="overflow: hidden; text-align: center;">
                                                                                ${examinationproject.examinationprojectSmallproject}
                                                                        </div>
                                                                    </td>

                                                                    <td class="bodyrow-list" _columnindex="4">
                                                                        <div class="bodytxt"
                                                                             style="overflow: hidden; text-align: center;">
                                                                                ${examinationproject.examinationprojectResults}
                                                                        </div>
                                                                    </td>
                                                                    <td class="bodyrow-list" _columnindex="4">
                                                                        <div class="bodytxt"
                                                                             style="overflow: hidden; text-align: center;">
                                                                                ${examinationproject.examinationprojectUnit}
                                                                        </div>
                                                                    </td>
                                                                    <td class="bodyrow-list" _columnindex="4">
                                                                        <div class="bodytxt"
                                                                             style="overflow: hidden; text-align: center;">
                                                                                ${examinationproject.examinationprojectReference}
                                                                        </div>
                                                                    </td>

                                                                </tr>

                                                        </c:forEach>

                                                        <tr class="fkbody-s" _rowindex="0">
                                                            <td class="bodyrow-list" _columnindex="4" colspan="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;height: 30px">
                                                                    医生建议
                                                                </div>
                                                            </td>

                                                        </tr>
                                                        <tr class="fkbody-s" _rowindex="0">
                                                            <td class="bodyrow-list" _columnindex="4" colspan="4">
                                                                <div class="bodytxt"
                                                                     style="overflow: hidden; text-align: center;">
                                                            <textarea id="TextArea1" cols="" rows="" name="summary"

                                                                      style="height: 300px;width: 100%">
                                                            </textarea>
                                                                </div>
                                                            </td>
                                                        </tr>

                                                    </form>
                                                    <c:set var="a" value="${a+1}"></c:set>


                                            </c:forEach>
                                            </tbody>

                                        </table>
                                    </div>


                                </div>


                                <div class="lu">
                                    共<i>${a-1}</i>条记录
                                </div>

                            </div>
                            <div class="tab-btn">
                                <div class="bt-f" style="margin-left: 370px">
                                    <ul>
                                        <li>
                                            <button class="button-li" onclick="submita()" value="">打印</button>
                                        </li>

                                    </ul>
                                </div>
                                <div class="bt-rg" style="margin-right: 600px">

                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>


</body>
<script src="js\jquery.min.js"></script>
<script>


    function  submita(){

        window.location.href="doShow/allPrinttrue";

    }
    var date = new Date();
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentDate = date.getFullYear() + "-" + month + "-" + strDate
        + " " + date.getHours() + ":" + date.getMinutes();

    $("#time").html(currentDate)

</script>

</html>
